home *** CD-ROM | disk | FTP | other *** search
/ Mastering Web Site Development / Microsoft Mastering Web Site Development (Microsoft) (1997).iso / Media / Ch03 / W03D030.cc2 < prev    next >
Encoding:
Text File  |  1997-04-24  |  2.6 KB  |  48 lines

  1. 0, In this demonstration you will see how to use the 
  2. 5, Data Form Wizard in Visual InterDev to generate 
  3. 9, Web pages that access a database. To start the Data 
  4. 13, Form Wizard, from the File menu, click New. From 
  5. 17, the File Wizards tab, select the Data Form Wizard 
  6. 21, and enter a file name. The file name will be used 
  7. 30, by the Data Form Wizard as a prefix for each of the 
  8. 33, files that it creates. In the first step of the 
  9. 37, Wizard, you specify the data connection to use and 
  10. 40, the title you want to appear on your form. 
  11. 45, Next, you specify the object that you want your form 
  12. 48, to be based on. I'll choose Table and click Next. 
  13. 54, I'll select the Students table and choose all 
  14. 57, fields. From the Advanced button, you can specify 
  15. 62, alternative text for a field label or a look-up 
  16. 66, field. For example, the MajorID field in the Students 
  17. 71, table is a number. The description for that major 
  18. 75, is stored in the Majors table. On my form, rather 
  19. 80, than displaying the number, I would like to display 
  20. 83, the description. To do that, I set the look-up 
  21. 86, table to Majors and set the display field to 
  22. 89, Description, and click OK. The Edit Options page lets you 
  23. 96, specify how you want your user to interact with 
  24. 100, your form รน if you want the user to be able to 
  25. 104, insert, modify, and delete records. I'll choose the 
  26. 108, default options and click Next. From the viewing 
  27. 113, options page, I can specify if the user can see this 
  28. 117, in Form View or List View. Next, you choose the 
  29. 123, theme for your page. I'll choose Bluerose. Click 
  30. 128, Finish and Visual InterDev generates the files needed 
  31. 132, for your application. Visual InterDev generates up 
  32. 140, to three files. In my case, StudentsAction, 
  33. 146, StudentsForm, and StudentsList. Let's preview the 
  34. 153, StudentsList file. All of the records are displayed in 
  35. 159, a table format. Command buttons are added to 
  36. 163, enable the user to scroll backward and forward through 
  37. 166, the table. Each record is a hyperlink. If I click 
  38. 172, a record, a form is displayed for that specific 
  39. 175, record. This form is provided by the StudentsForm 
  40. 180, .asp file. From the form, I can change data and 
  41. 187, click Update to save the data. When I click Update, 
  42. 192, the record is saved and a feedback page is returned 
  43. 196, indicating which record was updated. The feedback 
  44. 200, page is provided by the StudentsAction.asp file. 
  45. 205, So in this demonstration you have seen how to use 
  46. 209, the Data Form Wizard to create Web pages that 
  47. 213, enable a user to access a database.
  48. 217, END